﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;

namespace Camc.Quality.CodeFormat
{
    public class GetCodeFormatListInput : PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        ///     编码名称
        /// </summary>
        public string CodeNameStr { get; set; }

        /// <summary>
        ///     是否使用
        /// </summary>
        public int? IsUsed { get; set; }

        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting)) Sorting = "CreationTime Desc";
        }
    }
}